package com.smartwebx.ha.web.admin.module.screen.report;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

import com.alibaba.citrus.turbine.dataresolver.Param;
/**
 * 
 * 创建人：Dream~天涯 
 * 创建时间：2015-10-27 上午11:16:56
 * 邮箱：154494796@qq.com
 * 备注：
 */
public class AjaxReportJson {
	public void execute(@Param("dataJson") String dataJson,@Param("reportId") String reportId) throws IOException{
		StringBuffer sb = new StringBuffer();
		sb.append(dataJson);
		
		FileWriter fw = new FileWriter("../webapps/ha-web/admin/assets/js/reportcache/cache"+reportId+".js");
        PrintWriter out = new PrintWriter(fw);
        out.write(sb.toString());
        out.println();
        fw.close();
        out.close();
	}
	public static void main(String[] args) {
		
	}
}
